import allure
import requests
from config.config import rpt_server, rpt_port
from util.common import get_active_token


@allure.step("Call report audit detail api, report audit id: {report_audit_id}")
def get_report_audit_detail_api(report_audit_id, x_token):
    resp = requests.get(url=f"http://{rpt_server}:{rpt_port}/compass-report-engine/audit/detail/{report_audit_id}",
                        headers={"x-token": x_token})
    return resp
